<?xml version="1.0" encoding="UTF-8"?>

<?import javafx.geometry.*?>
<?import java.lang.*?>
<?import java.util.*?>
<?import javafx.scene.*?>
<?import javafx.scene.control.*?>
<?import javafx.scene.layout.*?>

<VBox maxHeight="700.0" maxWidth="700.0" minHeight="-Infinity" minWidth="-Infinity" prefHeight="400.0" prefWidth="600.0" xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1" fx:controller="view.fxview.controllers.MainController">
   <children>
      <HBox prefHeight="63.0" prefWidth="600.0">
         <children>
            <MenuButton mnemonicParsing="false" prefWidth="100.0" text="Добавить">
              <items>
                <MenuItem mnemonicParsing="false" text="Добавить жанр" fx:id="addGenre" onAction="#handleAddGenre" />
                <MenuItem mnemonicParsing="false" text="Добавить трек" fx:id="addTrack" onAction="#handleAddTrack" />
              </items>
               <HBox.margin>
                  <Insets bottom="20.0" left="20.0" right="20.0" top="20.0" />
               </HBox.margin>
            </MenuButton>
            <MenuButton mnemonicParsing="false" prefWidth="100.0" text="Удалить">
              <items>
                <MenuItem mnemonicParsing="false" text="Удалить жанр" fx:id="deleteGenre" onAction="#handleDeleteGenre" />
                <MenuItem mnemonicParsing="false" text="Удалить трек" fx:id="deleteTrack" onAction="#handleDeleteTrack" />
              </items>
               <HBox.margin>
                  <Insets bottom="20.0" left="20.0" right="20.0" top="20.0" />
               </HBox.margin>
            </MenuButton>
            <MenuButton mnemonicParsing="false" prefWidth="100.0" text="Изменить">
              <items>
                <MenuItem mnemonicParsing="false" text="Изменить жанр" fx:id="changeGenre" onAction="#handleChangeGenre" />
                <MenuItem mnemonicParsing="false" text="Изменить трек" fx:id="changeTrack" onAction="#handleChangeTrack" />
              </items>
               <HBox.margin>
                  <Insets bottom="20.0" left="20.0" right="20.0" top="20.0" />
               </HBox.margin>
            </MenuButton>
            <Button mnemonicParsing="false" onAction="#handleChoosePath" text="Выбрать файл" fx:id="choosePath" >
               <HBox.margin>
                  <Insets bottom="20.0" left="20.0" right="20.0" top="20.0" />
               </HBox.margin>
            </Button>
         </children>
      </HBox>
      <AnchorPane prefHeight="200.0" prefWidth="200.0" VBox.vgrow="ALWAYS">
         <children>
            <TableView fx:id="dataTable" prefHeight="260.0" prefWidth="601.0" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">
              <columns>
                <TableColumn fx:id="genreNameColumn" prefWidth="123.0" text="Название жанра" />
                <TableColumn fx:id="trackNameColumn" minWidth="0.0" prefWidth="134.0" text="Название трека" />
                  <TableColumn fx:id="artistColumn" prefWidth="128.0" text="Исполнитель" />
                  <TableColumn fx:id="albumColumn" prefWidth="108.0" text="Альбом" />
                  <TableColumn fx:id="lengthColumn" prefWidth="107.0" text="Длительность" />
              </columns>
               <columnResizePolicy>
                  <TableView fx:constant="CONSTRAINED_RESIZE_POLICY" />
               </columnResizePolicy>
            </TableView>
         </children>
      </AnchorPane>
      <AnchorPane prefHeight="68.0" prefWidth="600.0">
         <children>
            <Label fx:id="informationField" prefHeight="57.0" prefWidth="565.0" text="Результат работы программы:" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0">
               <padding>
                  <Insets bottom="20.0" left="20.0" right="20.0" top="20.0" />
               </padding>
            </Label>
         </children>
      </AnchorPane>
   </children>
</VBox>
